<template>
  <div class="Dogdog">
    <img :src="url" alt="" />
    <p @click="btn">{{ name }}</p>
  </div>
</template>

<script>
export default {
  props: ['url', 'name']
};
</script>

<style scoped>
.Dogdog div {
  width: 200px;
  border: 1px solid black;
  text-align: center;
  float: left;
}
.Dogdog div img {
  width: 100%;
  height: 200px;
}
</style>